3.15.33 \(\int \frac {1}{\sqrt {-b x} \sqrt {2+b x}} \, dx\)

Optimal. Leaf size=10 \[ \frac {\sin ^{-1}(b x+1)}{b} \]

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 10, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {53, 619, 216} \begin {gather*} \frac {\sin ^{-1}(b x+1)}{b} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[1/(Sqrt[-(b*x)]*Sqrt[2 + b*x]),x]

[Out]

ArcSin[1 + b*x]/b

Rule 53

Int[1/(Sqrt[(a_) + (b_.)*(x_)]*Sqrt[(c_.) + (d_.)*(x_)]), x_Symbol] :> Int[1/Sqrt[a*c - b*(a - c)*x - b^2*x^2]
, x] /; FreeQ[{a, b, c, d}, x] && EqQ[b + d, 0] && GtQ[a + c, 0]

Rule 216

Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Simp[ArcSin[(Rt[-b, 2]*x)/Sqrt[a]]/Rt[-b, 2], x] /; FreeQ[{a, b}
, x] && GtQ[a, 0] && NegQ[b]

Rule 619

Int[((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Dist[1/(2*c*((-4*c)/(b^2 - 4*a*c))^p), Subst[Int[Si
mp[1 - x^2/(b^2 - 4*a*c), x]^p, x], x, b + 2*c*x], x] /; FreeQ[{a, b, c, p}, x] && GtQ[4*a - b^2/c, 0]

Rubi steps

\begin {align*} \int \frac {1}{\sqrt {-b x} \sqrt {2+b x}} \, dx &=\int \frac {1}{\sqrt {-2 b x-b^2 x^2}} \, dx\\ &=-\frac {\operatorname {Subst}\left (\int \frac {1}{\sqrt {1-\frac {x^2}{4 b^2}}} \, dx,x,-2 b-2 b^2 x\right )}{2 b^2}\\ &=\frac {\sin ^{-1}(1+b x)}{b}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B]  time = 0.01, size = 51, normalized size = 5.10 \begin {gather*} \frac {2 \sqrt {x} \sqrt {b x+2} \sinh ^{-1}\left (\frac {\sqrt {b} \sqrt {x}}{\sqrt {2}}\right )}{\sqrt {b} \sqrt {-b x (b x+2)}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[1/(Sqrt[-(b*x)]*Sqrt[2 + b*x]),x]

[Out]

(2*Sqrt[x]*Sqrt[2 + b*x]*ArcSinh[(Sqrt[b]*Sqrt[x])/Sqrt[2]])/(Sqrt[b]*Sqrt[-(b*x*(2 + b*x))])

________________________________________________________________________________________

IntegrateAlgebraic [B]  time = 0.04, size = 24, normalized size = 2.40 \begin {gather*} \frac {2 \tan ^{-1}\left (\frac {\sqrt {b x+2}}{\sqrt {-b x}}\right )}{b} \end {gather*}

Antiderivative was successfully verified.

[In]

IntegrateAlgebraic[1/(Sqrt[-(b*x)]*Sqrt[2 + b*x]),x]

[Out]

(2*ArcTan[Sqrt[2 + b*x]/Sqrt[-(b*x)]])/b

________________________________________________________________________________________

fricas [B]  time = 1.12, size = 26, normalized size = 2.60 \begin {gather*} -\frac {2 \, \arctan \left (\frac {\sqrt {b x + 2} \sqrt {-b x}}{b x}\right )}{b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(-b*x)^(1/2)/(b*x+2)^(1/2),x, algorithm="fricas")

[Out]

-2*arctan(sqrt(b*x + 2)*sqrt(-b*x)/(b*x))/b

________________________________________________________________________________________

giac [A]  time = 0.93, size = 18, normalized size = 1.80 \begin {gather*} \frac {2 \, \arcsin \left (\frac {1}{2} \, \sqrt {2} \sqrt {b x + 2}\right )}{b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(-b*x)^(1/2)/(b*x+2)^(1/2),x, algorithm="giac")

[Out]

2*arcsin(1/2*sqrt(2)*sqrt(b*x + 2))/b

________________________________________________________________________________________

maple [B]  time = 0.00, size = 58, normalized size = 5.80 \begin {gather*} \frac {\sqrt {-\left (b x +2\right ) b x}\, \arctan \left (\frac {\sqrt {b^{2}}\, \left (x +\frac {1}{b}\right )}{\sqrt {-b^{2} x^{2}-2 b x}}\right )}{\sqrt {-b x}\, \sqrt {b x +2}\, \sqrt {b^{2}}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/(-b*x)^(1/2)/(b*x+2)^(1/2),x)

[Out]

(-(b*x+2)*b*x)^(1/2)/(-b*x)^(1/2)/(b*x+2)^(1/2)/(b^2)^(1/2)*arctan((b^2)^(1/2)*(x+1/b)/(-b^2*x^2-2*b*x)^(1/2))

________________________________________________________________________________________

maxima [A]  time = 3.14, size = 18, normalized size = 1.80 \begin {gather*} -\frac {\arcsin \left (-\frac {b^{2} x + b}{b}\right )}{b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(-b*x)^(1/2)/(b*x+2)^(1/2),x, algorithm="maxima")

[Out]

-arcsin(-(b^2*x + b)/b)/b

________________________________________________________________________________________

mupad [B]  time = 0.29, size = 34, normalized size = 3.40 \begin {gather*} -\frac {4\,\mathrm {atan}\left (\frac {b\,\left (\sqrt {2}-\sqrt {b\,x+2}\right )}{\sqrt {-b\,x}\,\sqrt {b^2}}\right )}{\sqrt {b^2}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(1/((-b*x)^(1/2)*(b*x + 2)^(1/2)),x)

[Out]

-(4*atan((b*(2^(1/2) - (b*x + 2)^(1/2)))/((-b*x)^(1/2)*(b^2)^(1/2))))/(b^2)^(1/2)

________________________________________________________________________________________

sympy [C]  time = 1.28, size = 24, normalized size = 2.40 \begin {gather*} - \frac {2 i \operatorname {asinh}{\left (\frac {\sqrt {2} \sqrt {b} \sqrt {x}}{2} \right )}}{b} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(1/(-b*x)**(1/2)/(b*x+2)**(1/2),x)

[Out]

-2*I*asinh(sqrt(2)*sqrt(b)*sqrt(x)/2)/b

________________________________________________________________________________________